package com.model;

import java.io.Serializable;

public class ArrayObject implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Object []ob;
	private int size;
	private int max;
	public int getSize()
	{
		return max;
	}
	public ArrayObject(int n)
	{
		max=n;
		size=0;
		ob=new Object[n];
	}
	public void push(Object tob)
	{
		if(size<=max)
			ob[size++]=tob;
	}
	public Object[] getObjects()
	{
		return ob;
	}
}
